package com.trkj.pojos;

import java.io.Serializable;
import javax.persistence.*;

import com.alibaba.fastjson.annotation.JSONField;

import java.math.BigDecimal;
import java.util.Date;


/**
 * The persistent class for the CC_CASRHISTORY database table.
 * 
 */
@Entity
@Table(name="CC_CASRHISTORY")
@NamedQuery(name="CcCasrhistory.findAll", query="SELECT c FROM CcCasrhistory c")
public class CcCasrhistory implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@SequenceGenerator(allocationSize=1,name="CC_CASRHISTORY_CASEHISTORY_GENERATOR", sequenceName="SEQHIS")
	@GeneratedValue(strategy=GenerationType.SEQUENCE, generator="CC_CASRHISTORY_CASEHISTORY_GENERATOR")
	private long casehistory;

	@Temporal(TemporalType.DATE)
	@JSONField(format="yyyy/MM/dd")
	private Date admissiondate;

	private String casepatientid;

	private BigDecimal cberthid;

	private String diacrisis;

	private String inofficeid;

	@Temporal(TemporalType.DATE)
	@JSONField(format="yyyy/MM/dd")
	private Date outdate;

	private String outdiacrisis;

	private BigDecimal outgenreno;

	private String outofficeid;

	public CcCasrhistory() {
	}

	public long getCasehistory() {
		return this.casehistory;
	}

	public void setCasehistory(long casehistory) {
		this.casehistory = casehistory;
	}

	public Date getAdmissiondate() {
		return this.admissiondate;
	}

	public void setAdmissiondate(Date admissiondate) {
		this.admissiondate = admissiondate;
	}

	public String getCasepatientid() {
		return this.casepatientid;
	}

	public void setCasepatientid(String casepatientid) {
		this.casepatientid = casepatientid;
	}

	public BigDecimal getCberthid() {
		return this.cberthid;
	}

	public void setCberthid(BigDecimal cberthid) {
		this.cberthid = cberthid;
	}

	public String getDiacrisis() {
		return this.diacrisis;
	}

	public void setDiacrisis(String diacrisis) {
		this.diacrisis = diacrisis;
	}

	public String getInofficeid() {
		return this.inofficeid;
	}

	public void setInofficeid(String inofficeid) {
		this.inofficeid = inofficeid;
	}

	public Date getOutdate() {
		return this.outdate;
	}

	public void setOutdate(Date outdate) {
		this.outdate = outdate;
	}

	public String getOutdiacrisis() {
		return this.outdiacrisis;
	}

	public void setOutdiacrisis(String outdiacrisis) {
		this.outdiacrisis = outdiacrisis;
	}

	public BigDecimal getOutgenreno() {
		return this.outgenreno;
	}

	public void setOutgenreno(BigDecimal outgenreno) {
		this.outgenreno = outgenreno;
	}

	public String getOutofficeid() {
		return this.outofficeid;
	}

	public void setOutofficeid(String outofficeid) {
		this.outofficeid = outofficeid;
	}

}